package com.itheima.dubbo.api;

import com.itheima.model.enums.CommentType;
import com.itheima.model.mongo.Comment;

import java.util.List;


public interface CommentsApi {
    Integer save(Comment comment);

    List<Comment> findComments(String movementId, CommentType comment, Integer page, Integer pagesize);

    boolean hasComment(String movementId, Long userId, CommentType like);

    Integer delete(Comment comment1);

    Integer saveComent(Comment comment);

    //评论取消点赞
    Integer deleteCount(Comment comment);
    // 分页查询评论该用户的评论列表
    List<Comment> getComments(Long userId, Integer page, Integer pagesize);

    // 分页查询点赞该用户的点赞列表
    List<Comment> getLikes(Long userId, Integer page, Integer pagesize);

    // 分页查询点赞该用户的喜欢列表
    List<Comment> getLoves(Long userId, Integer page, Integer pagesize);

    List<Comment> getlist(Integer page, Integer pagesize, String sortProp, String sortOrder, Long messageID);
}
